<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="bjui-pageContent">
	<div style="padding-left: 20px">
		<div class="row">
			<div class="col-md-6">
				<form:form modelAttribute="borrowInfo" method="post"
					data-toggle="ajaxform" cssClass="form-horizontal" servletRelativeAction="/borrow/doEdit">
					<form:hidden path="id"/>
					<form:hidden path="createTime"/>
					<form:hidden path="status"/>
					<form:hidden path="no"/>
					<div class="form-group">
						<label class="col-md-3">借款标名称：</label>
						<div class="col-md-9">
							<form:input path="name" autocomplete="off" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">借款人：</label>
						<div class="col-md-9">
						<form:select path="memberInfo.id" cssClass="form-control">
							<form:option value="1">借款人</form:option>
						</form:select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">募集金额：</label>
						<div class="col-md-9">
							<form:input path="totalMoney" autocomplete="off"
								data-toggle="spinner" data-decimal-place="2" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">年华收益率：</label>
						<div class="col-md-9">
							<form:input path="investRate" autocomplete="off"
								data-toggle="spinner" data-min="0" data-max="100" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">周期：</label>
						<div class="col-md-9">
							<form:input path="period" autocomplete="off"
								data-toggle="spinner" data-min="0" data-max="36" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">续投奖励</label>
						<div class="col-md-9">
							<input data-toggle="spinner" data-min="0">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">投资奖励</label>
						<div class="col-md-9">
							<input data-toggle="spinner" data-min="0">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">还款方式：</label>
						<div class="col-md-9">
							<form:select path="paymentMethod" cssClass="form-control">
								<c:forEach items="${paymentMethod}" var="obj">
									<form:option value="${obj}" />
								</c:forEach>
							</form:select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">借款业务</label>
						<c:url value="/business/data.json" var="businessDataUrl" />
						<div class="col-md-9">
							<input type="hidden" name="businessInfo.id"> <input
								name="businessInfo.name" data-toggle="findgrid"
								data-options="{
                                            group:'businessInfo',
                                            dialogOptions:{title:'查询业务'},
                                            gridOptions:{
                                                local:'local',
                                                dataUrl:'${businessDataUrl}',
                                                columns:[
                                                    {name:'id',label:'编号'},
                                                    {name:'name',label:'名称'},
                                                    {name:'createTime',label:'创建时间'}
                                                ]
                                            }
                                            }" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">最小投资金额</label>
						<div class="col-md-9">
						<form:select path="minInvest">
							<form:option value="50">50元</form:option>
						</form:select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">是否自动投标</label>
						<div class="col-md-9">
							<input type="checkbox" name="check" value="" data-toggle="icheck" data-label="自动投标">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-3">是否自动放款</label>
						<div class="col-md-9">
							<input type="checkbox" name="dsa" value="" data-toggle="icheck" data-label="自动放款">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-md-3">编辑描述:</label>
						<div class="col-md-9">
							<form:textarea path="projectDescription" data-toggle="kindeditor" dataminheight="200"/>
						</div>
					</div>
				</form:form>
			</div>
		</div>

	</div>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>
